home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / CIncludes / Gestalt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  58.5 KB  |  1,678 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Gestalt.h
  3.  
  4.      Contains:    Gestalt Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1988-1998 by Apple Computer, Inc.  All rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __GESTALT__
  18. #define __GESTALT__
  19.  
  20. #ifndef __MACTYPES__
  21. #include <MacTypes.h>
  22. #endif
  23. #ifndef __MIXEDMODE__
  24. #include <MixedMode.h>
  25. #endif
  26.  
  27.  
  28.  
  29. #if PRAGMA_ONCE
  30. #pragma once
  31. #endif
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37. #if PRAGMA_IMPORT
  38. #pragma import on
  39. #endif
  40.  
  41. #if PRAGMA_STRUCT_ALIGN
  42.     #pragma options align=mac68k
  43. #elif PRAGMA_STRUCT_PACKPUSH
  44.     #pragma pack(push, 2)
  45. #elif PRAGMA_STRUCT_PACK
  46.     #pragma pack(2)
  47. #endif
  48.  
  49.  
  50.  
  51. typedef CALLBACK_API( OSErr , SelectorFunctionProcPtr )(OSType selector, long *response);
  52. typedef STACK_UPP_TYPE(SelectorFunctionProcPtr)                 SelectorFunctionUPP;
  53. enum { uppSelectorFunctionProcInfo = 0x000003E0 };                 /* pascal 2_bytes Func(4_bytes, 4_bytes) */
  54. #define NewSelectorFunctionProc(userRoutine)                     (SelectorFunctionUPP)NewRoutineDescriptor((ProcPtr)(userRoutine), uppSelectorFunctionProcInfo, GetCurrentArchitecture())
  55. #define CallSelectorFunctionProc(userRoutine, selector, response)  CALL_TWO_PARAMETER_UPP((userRoutine), uppSelectorFunctionProcInfo, (selector), (response))
  56.  
  57.  
  58.  
  59. /*
  60.     Note:     The Gestalt trap was not implemented until System 6.0.5.  If you want to call Gestalt
  61.             while running on System 6.0 machines, then define USE_GESTALT_GLUE and link with
  62.             Interface.o which contains glue to implement Gestalt on pre-System 6.0.5 machines.
  63. */
  64. #ifdef USE_GESTALT_GLUE
  65. EXTERN_API( OSErr )
  66. Gestalt                            (OSType                 selector,
  67.                                  long *                    response);
  68.  
  69. #else
  70.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  71.                                                                                             #pragma parameter __D0 Gestalt(__D0, __A1)
  72.                                                                                             #endif
  73. EXTERN_API( OSErr )
  74. Gestalt                            (OSType                 selector,
  75.                                  long *                    response)                            TWOWORDINLINE(0xA1AD, 0x2288);
  76.  
  77. #endif  /* defined(USE_GESTALT_GLUE) */
  78.  
  79.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  80.                                                                                             #pragma parameter __D0 ReplaceGestalt(__D0, __A0, __A1)
  81.                                                                                             #endif
  82. EXTERN_API( OSErr )
  83. ReplaceGestalt                    (OSType                 selector,
  84.                                  SelectorFunctionUPP     gestaltFunction,
  85.                                  SelectorFunctionUPP *    oldGestaltFunction)                    FOURWORDINLINE(0x2F09, 0xA5AD, 0x225F, 0x2288);
  86.  
  87.                                                                                             #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
  88.                                                                                             #pragma parameter __D0 NewGestalt(__D0, __A0)
  89.                                                                                             #endif
  90. EXTERN_API( OSErr )
  91. NewGestalt                        (OSType                 selector,
  92.                                  SelectorFunctionUPP     gestaltFunction)                    ONEWORDINLINE(0xA3AD);
  93.  
  94. /*
  95.       These functions (and SetGestaltValue) are built into System 7.5,
  96.       but not on earlier systems
  97. */
  98.  
  99. EXTERN_API( OSErr )
  100. NewGestaltValue                    (OSType                 selector,
  101.                                  long                     newValue)                            THREEWORDINLINE(0x303C, 0x0401, 0xABF1);
  102.  
  103. EXTERN_API( OSErr )
  104. ReplaceGestaltValue                (OSType                 selector,
  105.                                  long                     replacementValue)                    THREEWORDINLINE(0x303C, 0x0402, 0xABF1);
  106.  
  107. EXTERN_API( OSErr )
  108. SetGestaltValue                    (OSType                 selector,
  109.                                  long                     newValue)                            THREEWORDINLINE(0x303C, 0x0404, 0xABF1);
  110.  
  111. EXTERN_API( OSErr )
  112. DeleteGestaltValue                (OSType                 selector)                            THREEWORDINLINE(0x303C, 0x0203, 0xABF1);
  113.  
  114.  
  115.  
  116. /* Environment Selectors */
  117.  
  118. enum {
  119.     gestaltAddressingModeAttr    = FOUR_CHAR_CODE('addr'),        /* addressing mode attributes */
  120.     gestalt32BitAddressing        = 0,                            /* using 32-bit addressing mode */
  121.     gestalt32BitSysZone            = 1,                            /* 32-bit compatible system zone */
  122.     gestalt32BitCapable            = 2                                /* Machine is 32-bit capable */
  123. };
  124.  
  125.  
  126. enum {
  127.     gestaltAFPClient            = FOUR_CHAR_CODE('afps'),
  128.     gestaltAFPClientVersionMask    = 0x0000FFFF,                    /* low word of long is the */
  129.                                                                 /* client version 0x0001 -> 0x0007*/
  130.     gestaltAFPClient3_5            = 0x0001,
  131.     gestaltAFPClient3_6            = 0x0002,
  132.     gestaltAFPClient3_6_1        = 0x0003,
  133.     gestaltAFPClient3_6_2        = 0x0004,
  134.     gestaltAFPClient3_6_3        = 0x0005,                        /* including 3.6.4, 3.6.5*/
  135.     gestaltAFPClient3_7            = 0x0006,                        /* including 3.7.1*/
  136.     gestaltAFPClient3_7_2        = 0x0007,                        /* including 3.7.3*/
  137.     gestaltAFPClientAttributeMask = (long)0xFFFF0000,            /* high word of long is a */
  138.                                                                 /* set of attribute bits*/
  139.     gestaltAFPClientCfgRsrc        = 16,                            /* Client uses config resources*/
  140.     gestaltAFPClientSupportsIP    = 29,                            /* Client supports AFP over TCP/IP*/
  141.     gestaltAFPClientVMUI        = 30,                            /* Client can put up UI from the PBVolMount trap*/
  142.     gestaltAFPClientMultiReq    = 31                            /* Client supports multiple outstanding requests*/
  143. };
  144.  
  145.  
  146. enum {
  147.     gestaltAliasMgrAttr            = FOUR_CHAR_CODE('alis'),        /* Alias Mgr Attributes */
  148.     gestaltAliasMgrPresent        = 0,                            /* True if the Alias Mgr is present */
  149.     gestaltAliasMgrSupportsRemoteAppletalk = 1,                    /* True if the Alias Mgr knows about Remote Appletalk */
  150.     gestaltAliasMgrSupportsAOCEKeychain = 2,                    /* True if the Alias Mgr knows about the AOCE Keychain */
  151.     gestaltAliasMgrResolveAliasFileWithMountOptions = 3            /* True if the Alias Mgr implements gestaltAliasMgrResolveAliasFileWithMountOptions() and IsAliasFile() */
  152. };
  153.  
  154.  
  155. enum {
  156.     gestaltArbitorAttr            = FOUR_CHAR_CODE('arb '),
  157.     gestaltSerialArbitrationExists = 0                            /* this bit if the serial port arbitrator exists*/
  158. };
  159.  
  160.  
  161. enum {
  162.     gestaltAppleScriptVersion    = FOUR_CHAR_CODE('ascv')        /* AppleScript version*/
  163. };
  164.  
  165.  
  166. enum {
  167.     gestaltAppleScriptAttr        = FOUR_CHAR_CODE('ascr'),        /* AppleScript attributes*/
  168.     gestaltAppleScriptPresent    = 0,
  169.     gestaltAppleScriptPowerPCSupport = 1
  170. };
  171.  
  172.  
  173. enum {
  174.     gestaltATAAttr                = FOUR_CHAR_CODE('ata '),        /* ATA is the driver to support IDE hard disks */
  175.     gestaltATAPresent            = 0                                /* if set, ATA Manager is present */
  176. };
  177.  
  178.  
  179. enum {
  180.     gestaltATalkVersion            = FOUR_CHAR_CODE('atkv')        /* Detailed AppleTalk version; see comment above for format */
  181. };
  182.  
  183.  
  184. enum {
  185.     gestaltAppleTalkVersion        = FOUR_CHAR_CODE('atlk')        /* appletalk version */
  186. };
  187.  
  188. /*
  189.     FORMAT OF gestaltATalkVersion RESPONSE
  190.     --------------------------------------
  191.     The version is stored in the high three bytes of the response value.  Let us number
  192.     the bytes in the response value from 0 to 3, where 0 is the least-significant byte.
  193.  
  194.         Byte#:       3 2 1 0
  195.         Value:    0xMMNNRR00
  196.  
  197.     Byte 3 (MM) contains the major revision number, byte 2 (NN) contains the minor
  198.     revision number, and byte 1 (RR) contains a constant that represents the release
  199.     stage.  Byte 0 always contains 0x00.  The constants for the release stages are:
  200.  
  201.         development = 0x20
  202.         alpha        = 0x40
  203.         beta        = 0x60
  204.         final        = 0x80
  205.         release        = 0x80
  206.  
  207.     For example, if you call Gestalt with the 'atkv' selector when AppleTalk version 57
  208.     is loaded, you receive the long integer response value 0x39008000.
  209. */
  210.  
  211. enum {
  212.     gestaltAUXVersion            = FOUR_CHAR_CODE('a/ux')        /* a/ux version, if present */
  213. };
  214.  
  215.  
  216. enum {
  217.     gestaltBusClkSpeed            = FOUR_CHAR_CODE('bclk')        /* main I/O bus clock speed in hertz */
  218. };
  219.  
  220.  
  221. enum {
  222.     gestaltCloseViewAttr        = FOUR_CHAR_CODE('BSDa'),        /* CloseView attributes */
  223.     gestaltCloseViewEnabled        = 0,                            /* Closeview enabled (dynamic bit - returns current state) */
  224.     gestaltCloseViewDisplayMgrFriendly = 1                        /* Closeview compatible with Display Manager (FUTURE) */
  225. };
  226.  
  227.  
  228. enum {
  229.     gestaltCFMAttr                = FOUR_CHAR_CODE('cfrg'),        /* returns information about the Code Fragment Manager */
  230.     gestaltCFMPresent            = 0                                /* true if the Code Fragment Manager is present */
  231. };
  232.  
  233.  
  234. enum {
  235.     gestaltCollectionMgrVersion    = FOUR_CHAR_CODE('cltn')        /* Collection Manager version */
  236. };
  237.  
  238.  
  239. enum {
  240.     gestaltColorMatchingAttr    = FOUR_CHAR_CODE('cmta'),        /* ColorSync attributes */
  241.     gestaltHighLevelMatching    = 0,
  242.     gestaltColorMatchingLibLoaded = 1
  243. };
  244.  
  245.  
  246. enum {
  247.     gestaltColorMatchingVersion    = FOUR_CHAR_CODE('cmtc'),
  248.     gestaltColorSync10            = 0x0100,                        /* 0x0100 & 0x0110 _Gestalt versions for 1.0-1.0.3 product */
  249.     gestaltColorSync11            = 0x0110,                        /*   0x0100 == low-level matching only */
  250.     gestaltColorSync104            = 0x0104,                        /* Real version, by popular demand */
  251.     gestaltColorSync105            = 0x0105,
  252.     gestaltColorSync20            = 0x0200,                        /* ColorSync 2.0 */
  253.     gestaltColorSync21            = 0x0210,
  254.     gestaltColorSync211            = 0x0211,
  255.     gestaltColorSync212            = 0x0212,
  256.     gestaltColorSync213            = 0x0213,
  257.     gestaltColorSync25            = 0x0250
  258. };
  259.  
  260.  
  261. enum {
  262.     gestaltConnMgrAttr            = FOUR_CHAR_CODE('conn'),        /* connection mgr attributes    */
  263.     gestaltConnMgrPresent        = 0,
  264.     gestaltConnMgrCMSearchFix    = 1,                            /* Fix to CMAddSearch?     */
  265.     gestaltConnMgrErrorString    = 2,                            /* has CMGetErrorString() */
  266.     gestaltConnMgrMultiAsyncIO    = 3                                /* CMNewIOPB, CMDisposeIOPB, CMPBRead, CMPBWrite, CMPBIOKill */
  267. };
  268.  
  269.  
  270. enum {
  271.     gestaltColorPickerVersion    = FOUR_CHAR_CODE('cpkr'),        /* returns version of ColorPicker */
  272.     gestaltColorPicker            = FOUR_CHAR_CODE('cpkr')        /* gestaltColorPicker is old name for gestaltColorPickerVersion */
  273. };
  274.  
  275.  
  276. enum {
  277.     gestaltComponentMgr            = FOUR_CHAR_CODE('cpnt')        /* Component Mgr version */
  278. };
  279.  
  280. /*
  281.     The gestaltNativeCPUtype ('cput') selector can be used to determine the
  282.     native CPU type for all Macs running System 7.5 or later.
  283.  
  284.     The 'cput' selector is not available when running System 7.0 (or earlier)
  285.     on most 68K machines.  If 'cput' is not available, then the 'proc' selector
  286.     should be used to determine the processor type.
  287.  
  288.     An application should always try the 'cput' selector first.  This is because,
  289.     on PowerPC machines, the 'proc' selector will reflect the CPU type of the
  290.     emulator's "virtual processor" rather than the native CPU type.
  291.  
  292.     The values specified below are accurate.  Prior versions of the Gestalt
  293.     interface file contained values that were off by one.
  294.  
  295.     The Quadra 840AV and the Quadra 660AV contain a bug in the ROM code that
  296.     causes the 'cput' selector to respond with the value 5.  This behavior
  297.     occurs only when running System 7.1.  System 7.5 fixes the bug by replacing
  298.     the faulty 'cput' selector function with the correct one.
  299.  
  300.     The gestaltNativeCPUfamily ('cpuf') selector can be used to determine the
  301.     general family the native CPU is in. This can be helpful for determing how
  302.     blitters and things should be written. In general, it is smarter to use this
  303.     selector (when available) than gestaltNativeCPUtype since newer processors
  304.     in the same family can be handled without revising your code.
  305.  
  306.     gestaltNativeCPUfamily uses the same results as gestaltNativeCPUtype, but
  307.     will only return certain CPU values.
  308. */
  309.  
  310. enum {
  311.     gestaltNativeCPUtype        = FOUR_CHAR_CODE('cput'),        /* Native CPU type                                       */
  312.     gestaltNativeCPUfamily        = FOUR_CHAR_CODE('cpuf'),        /* Native CPU family                                  */
  313.     gestaltCPU68000                = 0,                            /* Various 68k CPUs...     */
  314.     gestaltCPU68010                = 1,
  315.     gestaltCPU68020                = 2,
  316.     gestaltCPU68030                = 3,
  317.     gestaltCPU68040                = 4,
  318.     gestaltCPU601                = 0x0101,                        /* IBM 601                                                 */
  319.     gestaltCPU603                = 0x0103,
  320.     gestaltCPU604                = 0x0104,
  321.     gestaltCPU603e                = 0x0106,
  322.     gestaltCPU603ev                = 0x0107,
  323.     gestaltCPU750                = 0x0108,                        /* Also 740 - "G3" */
  324.     gestaltCPU604e                = 0x0109,
  325.     gestaltCPU604ev                = 0x010A                        /* Mach 5, 250Mhz and up */
  326. };
  327.  
  328.  
  329. enum {
  330.     gestaltCRMAttr                = FOUR_CHAR_CODE('crm '),        /* comm resource mgr attributes */
  331.     gestaltCRMPresent            = 0,
  332.     gestaltCRMPersistentFix        = 1,                            /* fix for persistent tools */
  333.     gestaltCRMToolRsrcCalls        = 2                                /* has CRMGetToolResource/ReleaseToolResource */
  334. };
  335.  
  336.  
  337. enum {
  338.     gestaltControlStripVersion    = FOUR_CHAR_CODE('csvr')        /* Control Strip version (was 'sdvr') */
  339. };
  340.  
  341.  
  342. enum {
  343.     gestaltCTBVersion            = FOUR_CHAR_CODE('ctbv')        /* CommToolbox version */
  344. };
  345.  
  346.  
  347. enum {
  348.     gestaltDBAccessMgrAttr        = FOUR_CHAR_CODE('dbac'),        /* Database Access Mgr attributes */
  349.     gestaltDBAccessMgrPresent    = 0                                /* True if Database Access Mgr present */
  350. };
  351.  
  352.  
  353. enum {
  354.     gestaltSDPFindVersion        = FOUR_CHAR_CODE('dfnd')        /* OCE Standard Directory Panel*/
  355. };
  356.  
  357.  
  358. enum {
  359.     gestaltDictionaryMgrAttr    = FOUR_CHAR_CODE('dict'),        /* Dictionary Manager attributes */
  360.     gestaltDictionaryMgrPresent    = 0                                /* Dictionary Manager attributes */
  361. };
  362.  
  363.  
  364. enum {
  365.     gestaltDITLExtAttr            = FOUR_CHAR_CODE('ditl'),        /* AppenDITL, etc. calls from CTB */
  366.     gestaltDITLExtPresent        = 0,                            /* True if calls are present */
  367.     gestaltDITLExtSupportsIctb    = 1                                /* True if AppendDITL, ShortenDITL support 'ictb's */
  368. };
  369.  
  370.  
  371. enum {
  372.     gestaltDesktopPicturesAttr    = FOUR_CHAR_CODE('dkpx'),        /* Desktop Pictures attributes */
  373.     gestaltDesktopPicturesInstalled = 0,                        /* True if control panel is installed */
  374.     gestaltDesktopPicturesDisplayed = 1                            /* True if a picture is currently displayed */
  375. };
  376.  
  377.  
  378. enum {
  379.     gestaltDisplayMgrVers        = FOUR_CHAR_CODE('dplv')        /* Display Manager version */
  380. };
  381.  
  382.  
  383. enum {
  384.     gestaltDisplayMgrAttr        = FOUR_CHAR_CODE('dply'),        /* Display Manager attributes */
  385.     gestaltDisplayMgrPresent    = 0,                            /* True if Display Mgr is present */
  386.     gestaltDisplayMgrCanSwitchMirrored = 2,                        /* True if Display Mgr can switch modes on mirrored displays */
  387.     gestaltDisplayMgrSetDepthNotifies = 3,                        /* True SetDepth generates displays mgr notification */
  388.     gestaltDisplayMgrCanConfirm    = 4,                            /* True Display Manager supports DMConfirmConfiguration */
  389.     gestaltDisplayMgrColorSyncAware = 5                            /* True if Display Manager supports profiles for displays */
  390. };
  391.  
  392.  
  393. enum {
  394.     gestaltDragMgrAttr            = FOUR_CHAR_CODE('drag'),        /* Drag Manager attributes */
  395.     gestaltDragMgrPresent        = 0,                            /* Drag Manager is present */
  396.     gestaltDragMgrFloatingWind    = 1,                            /* Drag Manager supports floating windows */
  397.     gestaltPPCDragLibPresent    = 2,                            /* Drag Manager PPC DragLib is present */
  398.     gestaltDragMgrHasImageSupport = 3,                            /* Drag Manager allows SetDragImage call */
  399.     gestaltCanStartDragInFloatWindow = 4                        /* Drag Manager supports starting a drag in a floating window */
  400. };
  401.  
  402.  
  403. enum {
  404.     gestaltDigitalSignatureVersion = FOUR_CHAR_CODE('dsig')        /* returns Digital Signature Toolbox version in low-order word*/
  405. };
  406.  
  407.  
  408. enum {
  409.     gestaltEasyAccessAttr        = FOUR_CHAR_CODE('easy'),        /* Easy Access attributes */
  410.     gestaltEasyAccessOff        = 0,                            /* if Easy Access present, but off (no icon) */
  411.     gestaltEasyAccessOn            = 1,                            /* if Easy Access "On" */
  412.     gestaltEasyAccessSticky        = 2,                            /* if Easy Access "Sticky" */
  413.     gestaltEasyAccessLocked        = 3                                /* if Easy Access "Locked" */
  414. };
  415.  
  416.  
  417. enum {
  418.     gestaltEditionMgrAttr        = FOUR_CHAR_CODE('edtn'),        /* Edition Mgr attributes */
  419.     gestaltEditionMgrPresent    = 0,                            /* True if Edition Mgr present */
  420.     gestaltEditionMgrTranslationAware = 1                        /* True if edition manager is translation manager aware */
  421. };
  422.  
  423.  
  424. enum {
  425.     gestaltAppleEventsAttr        = FOUR_CHAR_CODE('evnt'),        /* Apple Events attributes */
  426.     gestaltAppleEventsPresent    = 0,                            /* True if Apple Events present */
  427.     gestaltScriptingSupport        = 1,
  428.     gestaltOSLInSystem            = 2                                /* OSL is in system so don’t use the one linked in to app */
  429. };
  430.  
  431.  
  432. enum {
  433.     gestaltExtensionTableVersion = FOUR_CHAR_CODE('etbl')        /* ExtensionTable version */
  434. };
  435.  
  436.  
  437. enum {
  438.     gestaltFloppyAttr            = FOUR_CHAR_CODE('flpy'),        /* Floppy disk drive/driver attributes */
  439.     gestaltFloppyIsMFMOnly        = 0,                            /* Floppy driver only supports MFM disk formats */
  440.     gestaltFloppyIsManualEject    = 1,                            /* Floppy drive, driver, and file system are in manual-eject mode */
  441.     gestaltFloppyUsesDiskInPlace = 2                            /* Floppy drive must have special DISK-IN-PLACE output; standard DISK-CHANGED not used */
  442. };
  443.  
  444.  
  445. enum {
  446.     gestaltFinderAttr            = FOUR_CHAR_CODE('fndr'),        /* Finder attributes */
  447.     gestaltFinderDropEvent        = 0,                            /* Finder recognizes drop event */
  448.     gestaltFinderMagicPlacement    = 1,                            /* Finder supports magic icon placement */
  449.     gestaltFinderCallsAEProcess    = 2,                            /* Finder calls AEProcessAppleEvent */
  450.     gestaltOSLCompliantFinder    = 3,                            /* Finder is scriptable and recordable */
  451.     gestaltFinderSupports4GBVolumes = 4,                        /* Finder correctly handles 4GB volumes */
  452.     gestaltFinderHasClippings    = 6,                            /* Finder supports Drag Manager clipping files */
  453.     gestaltFinderFullDragManagerSupport = 7,                    /* Finder accepts 'hfs ' flavors properly */
  454.     gestaltFinderFloppyRootComments = 8,                        /* in MacOS 8 and later, will be set if Finder ever supports comments on Floppy icons */
  455.     gestaltFinderLargeAndNotSavedFlavorsOK = 9,                    /* in MacOS 8 and later, this bit is set if drags with >1024-byte flavors and flavorNotSaved flavors work reliably */
  456.     gestaltFinderUsesExtensibleFolderManager = 10                /* Finder uses Extensible Folder Manager (for example, for Magic Routing) */
  457. };
  458.  
  459.  
  460. enum {
  461.     gestaltFindFolderAttr        = FOUR_CHAR_CODE('fold'),        /* Folder Mgr attributes */
  462.     gestaltFindFolderPresent    = 0,                            /* True if Folder Mgr present */
  463.     gestaltFolderDescSupport    = 1                                /* Tru if Folder Mgr has FolderDesc calls */
  464. };
  465.  
  466.  
  467.  
  468. enum {
  469.     gestaltFontMgrAttr            = FOUR_CHAR_CODE('font'),        /* Font Mgr attributes */
  470.     gestaltOutlineFonts            = 0                                /* True if Outline Fonts supported */
  471. };
  472.  
  473.  
  474. enum {
  475.     gestaltFPUType                = FOUR_CHAR_CODE('fpu '),        /* fpu type */
  476.     gestaltNoFPU                = 0,                            /* no FPU */
  477.     gestalt68881                = 1,                            /* 68881 FPU */
  478.     gestalt68882                = 2,                            /* 68882 FPU */
  479.     gestalt68040FPU                = 3                                /* 68040 built-in FPU */
  480. };
  481.  
  482.  
  483. enum {
  484.     gestaltFSAttr                = FOUR_CHAR_CODE('fs  '),        /* file system attributes */
  485.     gestaltFullExtFSDispatching    = 0,                            /* has really cool new HFSDispatch dispatcher */
  486.     gestaltHasFSSpecCalls        = 1,                            /* has FSSpec calls */
  487.     gestaltHasFileSystemManager    = 2,                            /* has a file system manager */
  488.     gestaltFSMDoesDynamicLoad    = 3,                            /* file system manager supports dynamic loading */
  489.     gestaltFSSupports4GBVols    = 4,                            /* file system supports 4 gigabyte volumes */
  490.     gestaltFSSupports2TBVols    = 5,                            /* file system supports 2 terabyte volumes */
  491.     gestaltHasExtendedDiskInit    = 6,                            /* has extended Disk Initialization calls */
  492.     gestaltDTMgrSupportsFSM        = 7,                            /* Desktop Manager support FSM-based foreign file systems */
  493.     gestaltFSNoMFSVols            = 8,                            /* file system doesn't supports MFS volumes */
  494.     gestaltFSSupportsHFSPlusVols = 9,                            /* file system supports HFS Plus volumes */
  495.     gestaltFSIncompatibleDFA82    = 10                            /* VCB and FCB structures changed; DFA 8.2 is incompatible */
  496. };
  497.  
  498.  
  499. enum {
  500.     gestaltAdminFeaturesFlagsAttr = FOUR_CHAR_CODE('fred'),        /* a set of admin flags, mostly useful internally. */
  501.     gestaltFinderUsesSpecialOpenFoldersFile = 0                    /* the Finder uses a special file to store the list of open folders */
  502. };
  503.  
  504.  
  505. enum {
  506.     gestaltFSMVersion            = FOUR_CHAR_CODE('fsm ')        /* returns version of HFS External File Systems Manager (FSM) */
  507. };
  508.  
  509.  
  510. enum {
  511.     gestaltFXfrMgrAttr            = FOUR_CHAR_CODE('fxfr'),        /* file transfer manager attributes */
  512.     gestaltFXfrMgrPresent        = 0,
  513.     gestaltFXfrMgrMultiFile        = 1,                            /* supports FTSend and FTReceive */
  514.     gestaltFXfrMgrErrorString    = 2,                            /* supports FTGetErrorString */
  515.     gestaltFXfrMgrAsync            = 3                                /*supports FTSendAsync, FTReceiveAsync, FTCompletionAsync*/
  516. };
  517.  
  518.  
  519. enum {
  520.     gestaltGraphicsAttr            = FOUR_CHAR_CODE('gfxa'),        /* Quickdraw GX attributes selector */
  521.     gestaltGraphicsIsDebugging    = 0x00000001,
  522.     gestaltGraphicsIsLoaded        = 0x00000002,
  523.     gestaltGraphicsIsPowerPC    = 0x00000004
  524. };
  525.  
  526.  
  527. enum {
  528.     gestaltGraphicsVersion        = FOUR_CHAR_CODE('grfx'),        /* Quickdraw GX version selector */
  529.     gestaltCurrentGraphicsVersion = 0x00010200                    /* the version described in this set of headers */
  530. };
  531.  
  532.  
  533. enum {
  534.     gestaltHardwareAttr            = FOUR_CHAR_CODE('hdwr'),        /* hardware attributes */
  535.     gestaltHasVIA1                = 0,                            /* VIA1 exists */
  536.     gestaltHasVIA2                = 1,                            /* VIA2 exists */
  537.     gestaltHasASC                = 3,                            /* Apple Sound Chip exists */
  538.     gestaltHasSCC                = 4,                            /* SCC exists */
  539.     gestaltHasSCSI                = 7,                            /* SCSI exists */
  540.     gestaltHasSoftPowerOff        = 19,                            /* Capable of software power off */
  541.     gestaltHasSCSI961            = 21,                            /* 53C96 SCSI controller on internal bus */
  542.     gestaltHasSCSI962            = 22,                            /* 53C96 SCSI controller on external bus */
  543.     gestaltHasUniversalROM        = 24,                            /* Do we have a Universal ROM? */
  544.     gestaltHasEnhancedLtalk        = 30                            /* Do we have Enhanced LocalTalk? */
  545. };
  546.  
  547.  
  548. enum {
  549.     gestaltHelpMgrAttr            = FOUR_CHAR_CODE('help'),        /* Help Mgr Attributes */
  550.     gestaltHelpMgrPresent        = 0,                            /* true if help mgr is present */
  551.     gestaltHelpMgrExtensions    = 1,                            /* true if help mgr extensions are installed */
  552.     gestaltAppleGuideIsDebug    = 30,
  553.     gestaltAppleGuidePresent    = 31                            /* true if AppleGuide is installed */
  554. };
  555.  
  556.  
  557. enum {
  558.     gestaltHardwareVendorCode    = FOUR_CHAR_CODE('hrad'),        /* Returns hardware vendor information */
  559.     gestaltHardwareVendorApple    = FOUR_CHAR_CODE('Appl')        /* Hardware built by Apple */
  560. };
  561.  
  562.  
  563. enum {
  564.     gestaltCompressionMgr        = FOUR_CHAR_CODE('icmp')        /* returns version of the Image Compression Manager */
  565. };
  566.  
  567.  
  568. enum {
  569.     gestaltIconUtilitiesAttr    = FOUR_CHAR_CODE('icon'),        /* Icon Utilities attributes  (Note: available in System 7.0, despite gestalt) */
  570.     gestaltIconUtilitiesPresent    = 0,                            /* true if icon utilities are present */
  571.     gestaltIconUtilitiesHas48PixelIcons = 1,                    /* true if 48x48 icons are supported by IconUtilities */
  572.     gestaltIconUtilitiesHas32BitIcons = 2,                        /* true if 32-bit deep icons are supported */
  573.     gestaltIconUtilitiesHas8BitDeepMasks = 3,                    /* true if 8-bit deep masks are supported */
  574.     gestaltIconUtilitiesHasIconServices = 4                        /* true if IconServices is present */
  575. };
  576.  
  577.  
  578. enum {
  579.     gestaltInternalDisplay        = FOUR_CHAR_CODE('idsp')        /* slot number of internal display location */
  580. };
  581.  
  582. /*
  583.     To obtain information about the connected keyboard(s), one should
  584.     use the ADB Manager API.  See Technical Note OV16 for details.
  585. */
  586.  
  587. enum {
  588.     gestaltKeyboardType            = FOUR_CHAR_CODE('kbd '),        /* keyboard type */
  589.     gestaltMacKbd                = 1,
  590.     gestaltMacAndPad            = 2,
  591.     gestaltMacPlusKbd            = 3,
  592.     gestaltExtADBKbd            = 4,
  593.     gestaltStdADBKbd            = 5,
  594.     gestaltPrtblADBKbd            = 6,
  595.     gestaltPrtblISOKbd            = 7,
  596.     gestaltStdISOADBKbd            = 8,
  597.     gestaltExtISOADBKbd            = 9,
  598.     gestaltADBKbdII                = 10,
  599.     gestaltADBISOKbdII            = 11,
  600.     gestaltPwrBookADBKbd        = 12,
  601.     gestaltPwrBookISOADBKbd        = 13,
  602.     gestaltAppleAdjustKeypad    = 14,
  603.     gestaltAppleAdjustADBKbd    = 15,
  604.     gestaltAppleAdjustISOKbd    = 16,
  605.     gestaltJapanAdjustADBKbd    = 17,                            /* Japan Adjustable Keyboard */
  606.     gestaltPwrBkExtISOKbd        = 20,                            /* PowerBook Extended International Keyboard with function keys */
  607.     gestaltPwrBkExtJISKbd        = 21,                            /* PowerBook Extended Japanese Keyboard with function keys         */
  608.     gestaltPwrBkExtADBKbd        = 24,                            /* PowerBook Extended Domestic Keyboard with function keys         */
  609.     gestaltPS2Keyboard            = 27,                            /* PS2 keyboard */
  610.     gestaltPwrBkSubDomKbd        = 28,                            /* PowerBook Subnote Domestic Keyboard with function keys w/  inverted T     */
  611.     gestaltPwrBkSubISOKbd        = 29,                            /* PowerBook Subnote International Keyboard with function keys w/  inverted T     */
  612.     gestaltPwrBkSubJISKbd        = 30,                            /* PowerBook Subnote Japanese Keyboard with function keys w/ inverted T         */
  613.     gestaltPwrBkEKDomKbd        = 195,                            /* (0xC3) PowerBook Domestic Keyboard with Embedded Keypad, function keys & inverted T     */
  614.     gestaltPwrBkEKISOKbd        = 196,                            /* (0xC4) PowerBook International Keyboard with Embedded Keypad, function keys & inverted T     */
  615.     gestaltPwrBkEKJISKbd        = 197,                            /* (0xC5) PowerBook Japanese Keyboard with Embedded Keypad, function keys & inverted T         */
  616.     gestaltUSBCosmoANSIKbd        = 198,                            /* (0xC6) Cosmo USB Domestic (ANSI) Keyboard */
  617.     gestaltUSBCosmoISOKbd        = 199,                            /* (0xC7) Cosmo USB International (ISO) Keyboard */
  618.     gestaltUSBCosmoJISKbd        = 200                            /* (0xC8) Cosmo USB Japanese (JIS) Keyboard */
  619. };
  620.  
  621.  
  622. enum {
  623.     gestaltLowMemorySize        = FOUR_CHAR_CODE('lmem')        /* size of low memory area */
  624. };
  625.  
  626.  
  627. enum {
  628.     gestaltLogicalRAMSize        = FOUR_CHAR_CODE('lram')        /* logical ram size */
  629. };
  630.  
  631. /*
  632.     MACHINE TYPE CONSTANTS NAMING CONVENTION
  633.  
  634.         All future machine type constant names take the following form:
  635.  
  636.             gestalt<lineName><modelNumber>
  637.  
  638.     Line Names
  639.  
  640.         The following table contains the lines currently produced by Apple and the
  641.         lineName substrings associated with them:
  642.  
  643.             Line                        lineName
  644.             -------------------------    ------------
  645.             Macintosh LC                "MacLC"
  646.             Macintosh Performa            "Performa"
  647.             Macintosh PowerBook            "PowerBook"
  648.             Macintosh PowerBook Duo        "PowerBookDuo"
  649.             Power Macintosh                "PowerMac"
  650.             Apple Workgroup Server        "AWS"
  651.  
  652.         The following table contains lineNames for some discontinued lines:
  653.  
  654.             Line                        lineName
  655.             -------------------------    ------------
  656.             Macintosh Quadra            "MacQuadra" (preferred)
  657.                                         "Quadra" (also used, but not preferred)
  658.             Macintosh Centris            "MacCentris"
  659.  
  660.     Model Numbers
  661.  
  662.         The modelNumber is a string representing the specific model of the machine
  663.         within its particular line.  For example, for the Power Macintosh 8100/80,
  664.         the modelNumber is "8100".
  665.  
  666.         Some Performa & LC model numbers contain variations in the rightmost 1 or 2
  667.         digits to indicate different RAM and Hard Disk configurations.  A single
  668.         machine type is assigned for all variations of a specific model number.  In
  669.         this case, the modelNumber string consists of the constant leftmost part
  670.         of the model number with 0s for the variant digits.  For example, the
  671.         Performa 6115 and Performa 6116 are both return the same machine type
  672.         constant:  gestaltPerforma6100.
  673.  
  674.  
  675.     OLD NAMING CONVENTIONS
  676.  
  677.     The "Underscore Speed" suffix
  678.  
  679.         In the past, Apple differentiated between machines that had the same model
  680.         number but different speeds.  For example, the Power Macintosh 8100/80 and
  681.         Power Macintosh 8100/100 return different machine type constants.  This is
  682.         why some existing machine type constant names take the form:
  683.  
  684.             gestalt<lineName><modelNumber>_<speed>
  685.  
  686.         e.g.
  687.  
  688.             gestaltPowerMac8100_110
  689.             gestaltPowerMac7100_80
  690.             gestaltPowerMac7100_66
  691.  
  692.         It is no longer necessary to use the "underscore speed" suffix.  Starting with
  693.         the Power Surge machines (Power Macintosh 7200, 7500, 8500 and 9500), speed is
  694.         no longer used to differentiate between machine types.  This is why a Power
  695.         Macintosh 7200/75 and a Power Macintosh 7200/90 return the same machine type
  696.         constant:  gestaltPowerMac7200.
  697.  
  698.     The "Screen Type" suffix
  699.  
  700.         All PowerBook models prior to the PowerBook 190, and all PowerBook Duo models
  701.         before the PowerBook Duo 2300 take the form:
  702.  
  703.             gestalt<lineName><modelNumber><screenType>
  704.  
  705.         Where <screenType> is "c" or the empty string.
  706.  
  707.         e.g.
  708.  
  709.             gestaltPowerBook100
  710.             gestaltPowerBookDuo280
  711.             gestaltPowerBookDuo280c
  712.             gestaltPowerBook180
  713.             gestaltPowerBook180c
  714.  
  715.         Starting with the PowerBook 190 series and the PowerBook Duo 2300 series, machine
  716.         types are no longer differentiated based on screen type.  This is why a PowerBook
  717.         5300cs/100 and a PowerBook 5300c/100 both return the same machine type constant:
  718.         gestaltPowerBook5300.
  719.  
  720.         Macintosh LC 630                gestaltMacLC630
  721.         Macintosh Performa 6200            gestaltPerforma6200
  722.         Macintosh Quadra 700            gestaltQuadra700
  723.         Macintosh PowerBook 5300        gestaltPowerBook5300
  724.         Macintosh PowerBook Duo 2300    gestaltPowerBookDuo2300
  725.         Power Macintosh 8500            gestaltPowerMac8500
  726. */
  727.  
  728.  
  729. enum {
  730.     gestaltMachineType            = FOUR_CHAR_CODE('mach'),        /* machine type */
  731.     gestaltClassic                = 1,
  732.     gestaltMacXL                = 2,
  733.     gestaltMac512KE                = 3,
  734.     gestaltMacPlus                = 4,
  735.     gestaltMacSE                = 5,
  736.     gestaltMacII                = 6,
  737.     gestaltMacIIx                = 7,
  738.     gestaltMacIIcx                = 8,
  739.     gestaltMacSE030                = 9,
  740.     gestaltPortable                = 10,
  741.     gestaltMacIIci                = 11,
  742.     gestaltPowerMac8100_120        = 12,
  743.     gestaltMacIIfx                = 13,
  744.     gestaltMacClassic            = 17,
  745.     gestaltMacIIsi                = 18,
  746.     gestaltMacLC                = 19,
  747.     gestaltMacQuadra900            = 20,
  748.     gestaltPowerBook170            = 21,
  749.     gestaltMacQuadra700            = 22,
  750.     gestaltClassicII            = 23,
  751.     gestaltPowerBook100            = 24,
  752.     gestaltPowerBook140            = 25,
  753.     gestaltMacQuadra950            = 26,
  754.     gestaltMacLCIII                = 27,
  755.     gestaltPerforma450            = gestaltMacLCIII,
  756.     gestaltPowerBookDuo210        = 29,
  757.     gestaltMacCentris650        = 30,
  758.     gestaltPowerBookDuo230        = 32,
  759.     gestaltPowerBook180            = 33,
  760.     gestaltPowerBook160            = 34,
  761.     gestaltMacQuadra800            = 35,
  762.     gestaltMacQuadra650            = 36,
  763.     gestaltMacLCII                = 37,
  764.     gestaltPowerBookDuo250        = 38,
  765.     gestaltAWS9150_80            = 39,
  766.     gestaltPowerMac8100_110        = 40,
  767.     gestaltAWS8150_110            = gestaltPowerMac8100_110,
  768.     gestaltPowerMac5200            = 41,
  769.     gestaltPowerMac5260            = gestaltPowerMac5200,
  770.     gestaltPerforma5300            = gestaltPowerMac5200,
  771.     gestaltPowerMac6200            = 42,
  772.     gestaltPerforma6300            = gestaltPowerMac6200,
  773.     gestaltMacIIvi                = 44,
  774.     gestaltMacIIvm                = 45,
  775.     gestaltPerforma600            = gestaltMacIIvm,
  776.     gestaltPowerMac7100_80        = 47,
  777.     gestaltMacIIvx                = 48,
  778.     gestaltMacColorClassic        = 49,
  779.     gestaltPerforma250            = gestaltMacColorClassic,
  780.     gestaltPowerBook165c        = 50,
  781.     gestaltMacCentris610        = 52,
  782.     gestaltMacQuadra610            = 53,
  783.     gestaltPowerBook145            = 54,
  784.     gestaltPowerMac8100_100        = 55,
  785.     gestaltMacLC520                = 56,
  786.     gestaltAWS9150_120            = 57,
  787.     gestaltPowerMac6400            = 58,
  788.     gestaltPerforma6400            = gestaltPowerMac6400,
  789.     gestaltPerforma6360            = gestaltPerforma6400,
  790.     gestaltMacCentris660AV        = 60,
  791.     gestaltMacQuadra660AV        = gestaltMacCentris660AV,
  792.     gestaltPerforma46x            = 62,
  793.     gestaltPowerMac8100_80        = 65,
  794.     gestaltAWS8150_80            = gestaltPowerMac8100_80,
  795.     gestaltPowerMac9500            = 67,
  796.     gestaltPowerMac9600            = gestaltPowerMac9500,
  797.     gestaltPowerMac7500            = 68,
  798.     gestaltPowerMac7600            = gestaltPowerMac7500,
  799.     gestaltPowerMac8500            = 69,
  800.     gestaltPowerMac8600            = gestaltPowerMac8500,
  801.     gestaltAWS8550                = gestaltPowerMac7500,
  802.     gestaltPowerBook180c        = 71,
  803.     gestaltPowerBook520            = 72,
  804.     gestaltPowerBook520c        = gestaltPowerBook520,
  805.     gestaltPowerBook540            = gestaltPowerBook520,
  806.     gestaltPowerBook540c        = gestaltPowerBook520,
  807.     gestaltPowerMac5400            = 74,
  808.     gestaltPowerMac6100_60        = 75,
  809.     gestaltAWS6150_60            = gestaltPowerMac6100_60,
  810.     gestaltPowerBookDuo270c        = 77,
  811.     gestaltMacQuadra840AV        = 78,
  812.     gestaltPerforma550            = 80,
  813.     gestaltPowerBook165            = 84,
  814.     gestaltPowerBook190            = 85,
  815.     gestaltMacTV                = 88,
  816.     gestaltMacLC475                = 89,
  817.     gestaltPerforma47x            = gestaltMacLC475,
  818.     gestaltMacLC575                = 92,
  819.     gestaltMacQuadra605            = 94,
  820.     gestaltMacQuadra630            = 98,
  821.     gestaltMacLC580                = 99,
  822.     gestaltPerforma580            = gestaltMacLC580,
  823.     gestaltPowerMac6100_66        = 100,
  824.     gestaltAWS6150_66            = gestaltPowerMac6100_66,
  825.     gestaltPowerBookDuo280        = 102,
  826.     gestaltPowerBookDuo280c        = 103,
  827.     gestaltPowerMacLC475        = 104,                            /* Mac LC 475 & PPC Processor Upgrade Card*/
  828.     gestaltPowerMacPerforma47x    = gestaltPowerMacLC475,
  829.     gestaltPowerMacLC575        = 105,                            /* Mac LC 575 & PPC Processor Upgrade Card */
  830.     gestaltPowerMacPerforma57x    = gestaltPowerMacLC575,
  831.     gestaltPowerMacQuadra630    = 106,                            /* Quadra 630 & PPC Processor Upgrade Card*/
  832.     gestaltPowerMacLC630        = gestaltPowerMacQuadra630,        /* Mac LC 630 & PPC Processor Upgrade Card*/
  833.     gestaltPowerMacPerforma63x    = gestaltPowerMacQuadra630,        /* Performa 63x & PPC Processor Upgrade Card*/
  834.     gestaltPowerMac7200            = 108,
  835.     gestaltPowerMac7300            = 109,
  836.     gestaltPowerMac7100_66        = 112,
  837.     gestaltPowerBook150            = 115,
  838.     gestaltPowerMacQuadra700    = 116,                            /* Quadra 700 & Power PC Upgrade Card*/
  839.     gestaltPowerMacQuadra900    = 117,                            /* Quadra 900 & Power PC Upgrade Card */
  840.     gestaltPowerMacQuadra950    = 118,                            /* Quadra 950 & Power PC Upgrade Card */
  841.     gestaltPowerMacCentris610    = 119,                            /* Centris 610 & Power PC Upgrade Card */
  842.     gestaltPowerMacCentris650    = 120,                            /* Centris 650 & Power PC Upgrade Card */
  843.     gestaltPowerMacQuadra610    = 121,                            /* Quadra 610 & Power PC Upgrade Card */
  844.     gestaltPowerMacQuadra650    = 122,                            /* Quadra 650 & Power PC Upgrade Card */
  845.     gestaltPowerMacQuadra800    = 123,                            /* Quadra 800 & Power PC Upgrade Card */
  846.     gestaltPowerBookDuo2300        = 124,
  847.     gestaltPowerBook500PPCUpgrade = 126,
  848.     gestaltPowerBook5300        = 128,
  849.     gestaltPowerBook1400        = 310,
  850.     gestaltPowerBook3400        = 306,
  851.     gestaltPowerBook2400        = 307,
  852.     gestaltPowerBookG3Series    = 312,
  853.     gestaltPowerBookG3            = 313,
  854.     gestaltPowerBookG3Series2    = 314,
  855.     gestaltPowerMacG3            = 510,
  856.     gestaltPowerMac5500            = 512,
  857.     gestalt20thAnniversary        = gestaltPowerMac5500,
  858.     gestaltPowerMac6500            = 513,
  859.     gestaltPowerMac4400_160        = 514,                            /* slower machine has different machine ID*/
  860.     gestaltPowerMac4400            = 515
  861. };
  862.  
  863.  
  864.  
  865. enum {
  866.     gestaltQuadra605            = gestaltMacQuadra605,
  867.     gestaltQuadra610            = gestaltMacQuadra610,
  868.     gestaltQuadra630            = gestaltMacQuadra630,
  869.     gestaltQuadra650            = gestaltMacQuadra650,
  870.     gestaltQuadra660AV            = gestaltMacQuadra660AV,
  871.     gestaltQuadra700            = gestaltMacQuadra700,
  872.     gestaltQuadra800            = gestaltMacQuadra800,
  873.     gestaltQuadra840AV            = gestaltMacQuadra840AV,
  874.     gestaltQuadra900            = gestaltMacQuadra900,
  875.     gestaltQuadra950            = gestaltMacQuadra950
  876. };
  877.  
  878.  
  879. enum {
  880.     kMachineNameStrID            = -16395
  881. };
  882.  
  883.  
  884. enum {
  885.     gestaltSMPMailerVersion        = FOUR_CHAR_CODE('malr')        /* OCE StandardMail*/
  886. };
  887.  
  888.  
  889. enum {
  890.     gestaltMediaBay                = FOUR_CHAR_CODE('mbeh'),        /* media bay driver type */
  891.     gestaltMBLegacy                = 0,                            /* media bay support in PCCard 2.0 */
  892.     gestaltMBSingleBay            = 1,                            /* single bay media bay driver */
  893.     gestaltMBMultipleBays        = 2                                /* multi-bay media bay driver */
  894. };
  895.  
  896.  
  897. enum {
  898.     gestaltMessageMgrVersion    = FOUR_CHAR_CODE('mess')        /* GX Printing Message Manager Gestalt Selector */
  899. };
  900.  
  901.  
  902. enum {
  903.     gestaltMachineIcon            = FOUR_CHAR_CODE('micn')        /* machine icon */
  904. };
  905.  
  906.  
  907. enum {
  908.     gestaltMiscAttr                = FOUR_CHAR_CODE('misc'),        /* miscellaneous attributes */
  909.     gestaltScrollingThrottle    = 0,                            /* true if scrolling throttle on */
  910.     gestaltSquareMenuBar        = 2                                /* true if menu bar is square */
  911. };
  912.  
  913.  
  914. /*
  915.     The name gestaltMixedModeVersion for the 'mixd' selector is semantically incorrect.
  916.     The same selector has been renamed gestaltMixedModeAttr to properly reflect the
  917.     Inside Mac: PowerPC System Software documentation.  The gestaltMixedModeVersion
  918.     symbol has been preserved only for backwards compatibility.
  919.  
  920.     Developers are forewarned that gestaltMixedModeVersion has a limited lifespan and
  921.     will be removed in a future release of the Interfaces.
  922.  
  923.     For the first version of Mixed Mode, both meanings of the 'mixd' selector are
  924.     functionally identical.  They both return 0x00000001.  In subsequent versions
  925.     of Mixed Mode, however, the 'mixd' selector will not respond with an increasing
  926.     version number, but rather, with 32 attribute bits with various meanings.
  927. */
  928.  
  929. enum {
  930.     gestaltMixedModeVersion        = FOUR_CHAR_CODE('mixd')        /* returns version of Mixed Mode */
  931. };
  932.  
  933.  
  934. enum {
  935.     gestaltMixedModeAttr        = FOUR_CHAR_CODE('mixd'),        /* returns Mixed Mode attributes */
  936.     gestaltMixedModePowerPC        = 0,                            /* true if Mixed Mode supports PowerPC ABI calling conventions */
  937.     gestaltPowerPCAware            = 0,                            /* old name for gestaltMixedModePowerPC */
  938.     gestaltMixedModeCFM68K        = 1,                            /* true if Mixed Mode supports CFM-68K calling conventions */
  939.     gestaltMixedModeCFM68KHasTrap = 2,                            /* true if CFM-68K Mixed Mode implements _MixedModeDispatch (versions 1.0.1 and prior did not) */
  940.     gestaltMixedModeCFM68KHasState = 3                            /* true if CFM-68K Mixed Mode exports Save/RestoreMixedModeState */
  941. };
  942.  
  943.  
  944. enum {
  945.     gestaltQuickTimeConferencing = FOUR_CHAR_CODE('mtlk')        /* returns QuickTime Conferencing version */
  946. };
  947.  
  948.  
  949. enum {
  950.     gestaltMemoryMapAttr        = FOUR_CHAR_CODE('mmap'),        /* Memory map type */
  951.     gestaltMemoryMapSparse        = 0                                /* Sparse memory is on */
  952. };
  953.  
  954.  
  955. enum {
  956.     gestaltMMUType                = FOUR_CHAR_CODE('mmu '),        /* mmu type */
  957.     gestaltNoMMU                = 0,                            /* no MMU */
  958.     gestaltAMU                    = 1,                            /* address management unit */
  959.     gestalt68851                = 2,                            /* 68851 PMMU */
  960.     gestalt68030MMU                = 3,                            /* 68030 built-in MMU */
  961.     gestalt68040MMU                = 4,                            /* 68040 built-in MMU */
  962.     gestaltEMMU1                = 5                                /* Emulated MMU type 1  */
  963. };
  964.  
  965.  
  966. enum {
  967.     gestaltStdNBPAttr            = FOUR_CHAR_CODE('nlup'),        /* standard nbp attributes */
  968.     gestaltStdNBPPresent        = 0,
  969.     gestaltStdNBPSupportsAutoPosition = 1                        /* StandardNBP takes (-1,-1) to mean alert position main screen */
  970. };
  971.  
  972.  
  973. enum {
  974.     gestaltNotificationMgrAttr    = FOUR_CHAR_CODE('nmgr'),        /* notification manager attributes */
  975.     gestaltNotificationPresent    = 0                                /* notification manager exists */
  976. };
  977.  
  978.  
  979. enum {
  980.     gestaltNameRegistryVersion    = FOUR_CHAR_CODE('nreg')        /* NameRegistryLib version number, for System 7.5.2+ usage */
  981. };
  982.  
  983.  
  984. enum {
  985.     gestaltNuBusSlotCount        = FOUR_CHAR_CODE('nubs')        /* count of logical NuBus slots present */
  986. };
  987.  
  988.  
  989. enum {
  990.     gestaltOCEToolboxVersion    = FOUR_CHAR_CODE('ocet'),        /* OCE Toolbox version */
  991.     gestaltOCETB                = 0x0102,                        /* OCE Toolbox version 1.02 */
  992.     gestaltSFServer                = 0x0100                        /* S&F Server version 1.0 */
  993. };
  994.  
  995.  
  996. enum {
  997.     gestaltOCEToolboxAttr        = FOUR_CHAR_CODE('oceu'),        /* OCE Toolbox attributes */
  998.     gestaltOCETBPresent            = 0x01,                            /* OCE toolbox is present, not running */
  999.     gestaltOCETBAvailable        = 0x02,                            /* OCE toolbox is running and available */
  1000.     gestaltOCESFServerAvailable    = 0x04,                            /* S&F Server is running and available */
  1001.     gestaltOCETBNativeGlueAvailable = 0x10                        /* Native PowerPC Glue routines are availible */
  1002. };
  1003.  
  1004.  
  1005. enum {
  1006.     gestaltOpenFirmwareInfo        = FOUR_CHAR_CODE('opfw')        /* Open Firmware info */
  1007. };
  1008.  
  1009.  
  1010. enum {
  1011.     gestaltOSAttr                = FOUR_CHAR_CODE('os  '),        /* o/s attributes */
  1012.     gestaltSysZoneGrowable        = 0,                            /* system heap is growable */
  1013.     gestaltLaunchCanReturn        = 1,                            /* can return from launch */
  1014.     gestaltLaunchFullFileSpec    = 2,                            /* can launch from full file spec */
  1015.     gestaltLaunchControl        = 3,                            /* launch control support available */
  1016.     gestaltTempMemSupport        = 4,                            /* temp memory support */
  1017.     gestaltRealTempMemory        = 5,                            /* temp memory handles are real */
  1018.     gestaltTempMemTracked        = 6,                            /* temporary memory handles are tracked */
  1019.     gestaltIPCSupport            = 7,                            /* IPC support is present */
  1020.     gestaltSysDebuggerSupport    = 8                                /* system debugger support is present */
  1021. };
  1022.  
  1023.  
  1024. enum {
  1025.     gestaltOSTable                = FOUR_CHAR_CODE('ostt')        /*  OS trap table base  */
  1026. };
  1027.  
  1028.  
  1029. enum {
  1030.     gestaltPCCard                = FOUR_CHAR_CODE('pccd'),        /*    PC Card attributes*/
  1031.     gestaltCardServicesPresent    = 0,                            /*    PC Card 2.0 (68K) API is present*/
  1032.     gestaltPCCardFamilyPresent    = 1,                            /*    PC Card 3.x (PowerPC) API is present*/
  1033.     gestaltPCCardHasPowerControl = 2,                            /*    PCCardSetPowerLevel is supported*/
  1034.     gestaltPCCardSupportsCardBus = 3                            /*    CardBus is supported*/
  1035. };
  1036.  
  1037.  
  1038. enum {
  1039.     gestaltProcClkSpeed            = FOUR_CHAR_CODE('pclk')        /* processor clock speed in hertz */
  1040. };
  1041.  
  1042.  
  1043. enum {
  1044.     gestaltPCXAttr                = FOUR_CHAR_CODE('pcxg'),        /* PC Exchange attributes */
  1045.     gestaltPCXHas8and16BitFAT    = 0,                            /* PC Exchange supports both 8 and 16 bit FATs */
  1046.     gestaltPCXHasProDOS            = 1                                /* PC Exchange supports ProDOS */
  1047. };
  1048.  
  1049.  
  1050. enum {
  1051.     gestaltLogicalPageSize        = FOUR_CHAR_CODE('pgsz')        /* logical page size */
  1052. };
  1053.  
  1054. /*    System 7.6 and later.  If gestaltScreenCaptureMain is not implemented,
  1055.     PictWhap proceeds with screen capture in the usual way.
  1056.  
  1057.     The high word of gestaltScreenCaptureMain is reserved (use 0).
  1058.  
  1059.     To disable screen capture to disk, put zero in the low word.  To
  1060.     specify a folder for captured pictures, put the vRefNum in the
  1061.     low word of gestaltScreenCaptureMain, and put the directory ID in
  1062.     gestaltScreenCaptureDir.
  1063. */
  1064.  
  1065. enum {
  1066.     gestaltScreenCaptureMain    = FOUR_CHAR_CODE('pic1'),        /* Zero, or vRefNum of disk to hold picture */
  1067.     gestaltScreenCaptureDir        = FOUR_CHAR_CODE('pic2')        /* Directory ID of folder to hold picture */
  1068. };
  1069.  
  1070.  
  1071. enum {
  1072.     gestaltGXPrintingMgrVersion    = FOUR_CHAR_CODE('pmgr')        /* QuickDraw GX Printing Manager Version*/
  1073. };
  1074.  
  1075.  
  1076. enum {
  1077.     gestaltPopupAttr            = FOUR_CHAR_CODE('pop!'),        /* popup cdef attributes */
  1078.     gestaltPopupPresent            = 0
  1079. };
  1080.  
  1081.  
  1082. enum {
  1083.     gestaltPowerMgrAttr            = FOUR_CHAR_CODE('powr'),        /* power manager attributes */
  1084.     gestaltPMgrExists            = 0,
  1085.     gestaltPMgrCPUIdle            = 1,
  1086.     gestaltPMgrSCC                = 2,
  1087.     gestaltPMgrSound            = 3,
  1088.     gestaltPMgrDispatchExists    = 4,
  1089.     gestaltPMgrSupportsAVPowerStateAtSleepWake = 5
  1090. };
  1091.  
  1092. /*
  1093.  * PPC will return the combination of following bit fields.
  1094.  * e.g. gestaltPPCSupportsRealTime +gestaltPPCSupportsIncoming + gestaltPPCSupportsOutGoing
  1095.  * indicates PPC is cuurently is only supports real time delivery
  1096.  * and both incoming and outgoing network sessions are allowed.
  1097.  * By default local real time delivery is supported as long as PPCInit has been called.*/
  1098.  
  1099. enum {
  1100.     gestaltPPCToolboxAttr        = FOUR_CHAR_CODE('ppc '),        /* PPC toolbox attributes */
  1101.     gestaltPPCToolboxPresent    = 0x0000,                        /* PPC Toolbox is present  Requires PPCInit to be called */
  1102.     gestaltPPCSupportsRealTime    = 0x1000,                        /* PPC Supports real-time delivery */
  1103.     gestaltPPCSupportsIncoming    = 0x0001,                        /* PPC will deny incoming network requests */
  1104.     gestaltPPCSupportsOutGoing    = 0x0002                        /* PPC will deny outgoing network requests */
  1105. };
  1106.  
  1107.  
  1108. enum {
  1109.     gestaltPowerPCProcessorFeatures = FOUR_CHAR_CODE('ppcf'),    /* Optional PowerPC processor features */
  1110.     gestaltPowerPCHasGraphicsInstructions = 0,                    /* has fres, frsqrte, and fsel instructions */
  1111.     gestaltPowerPCHasSTFIWXInstruction = 1,                        /* has stfiwx instruction */
  1112.     gestaltPowerPCHasSquareRootInstructions = 2,                /* has fsqrt and fsqrts instructions */
  1113.     gestaltPowerPCHasDCBAInstruction = 3,                        /* has dcba instruction */
  1114.     gestaltPowerPCHasVectorInstructions = 4,                    /* has vector instructions */
  1115.     gestaltPowerPCHasDataStreams = 5                            /* has dst, dstt, dstst, dss, and dssall instructions */
  1116. };
  1117.  
  1118.  
  1119. enum {
  1120.     gestaltProcessorType        = FOUR_CHAR_CODE('proc'),        /* processor type */
  1121.     gestalt68000                = 1,
  1122.     gestalt68010                = 2,
  1123.     gestalt68020                = 3,
  1124.     gestalt68030                = 4,
  1125.     gestalt68040                = 5
  1126. };
  1127.  
  1128.  
  1129. enum {
  1130.     gestaltSDPPromptVersion        = FOUR_CHAR_CODE('prpv')        /* OCE Standard Directory Panel*/
  1131. };
  1132.  
  1133.  
  1134. enum {
  1135.     gestaltParityAttr            = FOUR_CHAR_CODE('prty'),        /* parity attributes */
  1136.     gestaltHasParityCapability    = 0,                            /* has ability to check parity */
  1137.     gestaltParityEnabled        = 1                                /* parity checking enabled */
  1138. };
  1139.  
  1140.  
  1141. enum {
  1142.     gestaltQD3DVersion            = FOUR_CHAR_CODE('q3v ')        /* Quickdraw 3D version in pack BCD*/
  1143. };
  1144.  
  1145.  
  1146. enum {
  1147.     gestaltQD3DViewer            = FOUR_CHAR_CODE('q3vc'),        /* Quickdraw 3D viewer attributes*/
  1148.     gestaltQD3DViewerPresent    = 0                                /* bit 0 set if QD3D Viewer is available*/
  1149. };
  1150.  
  1151. #if OLDROUTINENAMES
  1152.  
  1153. enum {
  1154.     gestaltQD3DViewerNotPresent    = (0 << gestaltQD3DViewerPresent),
  1155.     gestaltQD3DViewerAvailable    = (1 << gestaltQD3DViewerPresent)
  1156. };
  1157.  
  1158. #endif  /* OLDROUTINENAMES */
  1159.  
  1160.  
  1161. enum {
  1162.     gestaltQuickdrawVersion        = FOUR_CHAR_CODE('qd  '),        /* quickdraw version */
  1163.     gestaltOriginalQD            = 0x0000,                        /* original 1-bit QD */
  1164.     gestalt8BitQD                = 0x0100,                        /* 8-bit color QD */
  1165.     gestalt32BitQD                = 0x0200,                        /* 32-bit color QD */
  1166.     gestalt32BitQD11            = 0x0201,                        /* 32-bit color QDv1.1 */
  1167.     gestalt32BitQD12            = 0x0220,                        /* 32-bit color QDv1.2 */
  1168.     gestalt32BitQD13            = 0x0230,                        /* 32-bit color QDv1.3 */
  1169.     gestaltAllegroQD            = 0x0250                        /* Allegro QD OS 8.5 */
  1170. };
  1171.  
  1172.  
  1173. enum {
  1174.     gestaltQD3D                    = FOUR_CHAR_CODE('qd3d'),        /* Quickdraw 3D attributes*/
  1175.     gestaltQD3DPresent            = 0                                /* bit 0 set if QD3D available*/
  1176. };
  1177.  
  1178. #if OLDROUTINENAMES
  1179.  
  1180. enum {
  1181.     gestaltQD3DNotPresent        = (0 << gestaltQD3DPresent),
  1182.     gestaltQD3DAvailable        = (1 << gestaltQD3DPresent)
  1183. };
  1184.  
  1185. #endif  /* OLDROUTINENAMES */
  1186.  
  1187.  
  1188. enum {
  1189.     gestaltGXVersion            = FOUR_CHAR_CODE('qdgx')        /* Overall QuickDraw GX Version*/
  1190. };
  1191.  
  1192.  
  1193. enum {
  1194.     gestaltQuickdrawFeatures    = FOUR_CHAR_CODE('qdrw'),        /* quickdraw features */
  1195.     gestaltHasColor                = 0,                            /* color quickdraw present */
  1196.     gestaltHasDeepGWorlds        = 1,                            /* GWorlds can be deeper than 1-bit */
  1197.     gestaltHasDirectPixMaps        = 2,                            /* PixMaps can be direct (16 or 32 bit) */
  1198.     gestaltHasGrayishTextOr        = 3,                            /* supports text mode grayishTextOr */
  1199.     gestaltSupportsMirroring    = 4,                            /* Supports video mirroring via the Display Manager. */
  1200.     gestaltQDHasLongRowBytes    = 5                                /* Long rowBytes supported in GWorlds */
  1201. };
  1202.  
  1203.  
  1204. enum {
  1205.     gestaltQDTextVersion        = FOUR_CHAR_CODE('qdtx'),        /* QuickdrawText version */
  1206.     gestaltOriginalQDText        = 0x0000,                        /* up to and including 8.1 */
  1207.     gestaltAllegroQDText        = 0x0100                        /* starting with 8.2 (?) */
  1208. };
  1209.  
  1210.  
  1211. enum {
  1212.     gestaltQDTextFeatures        = FOUR_CHAR_CODE('qdtf'),        /* QuickdrawText features */
  1213.     gestaltWSIISupport            = 0,                            /* bit 0: WSII support included */
  1214.     gestaltSbitFontSupport        = 1,                            /* sbit-only fonts supported */
  1215.     gestaltAntiAliasedTextAvailable = 2,                        /* capable of antialiased text */
  1216.     gestaltOFA2available        = 3,                            /* OFA2 available */
  1217.     gestaltCreatesAliasFontRsrc    = 4,                            /* "real" datafork font support */
  1218.     gestaltNativeType1FontSupport = 5                            /* we have scaler for Type1 fonts */
  1219. };
  1220.  
  1221.  
  1222.  
  1223. enum {
  1224.     gestaltQuickTimeConferencingInfo = FOUR_CHAR_CODE('qtci')    /* returns pointer to QuickTime Conferencing information */
  1225. };
  1226.  
  1227.  
  1228. enum {
  1229.     gestaltQuickTimeVersion        = FOUR_CHAR_CODE('qtim'),        /* returns version of QuickTime */
  1230.     gestaltQuickTime            = FOUR_CHAR_CODE('qtim')        /* gestaltQuickTime is old name for gestaltQuickTimeVersion */
  1231. };
  1232.  
  1233.  
  1234. enum {
  1235.     gestaltQuickTimeFeatures    = FOUR_CHAR_CODE('qtrs'),
  1236.     gestaltPPCQuickTimeLibPresent = 0                            /* PowerPC QuickTime glue library is present */
  1237. };
  1238.  
  1239.  
  1240. enum {
  1241.     gestaltQTVRMgrAttr            = FOUR_CHAR_CODE('qtvr'),        /* QuickTime VR attributes                               */
  1242.     gestaltQTVRMgrPresent        = 0,                            /* QTVR API is present                                   */
  1243.     gestaltQTVRObjMoviesPresent    = 1,                            /* QTVR runtime knows about object movies                */
  1244.     gestaltQTVRCylinderPanosPresent = 2                            /* QTVR runtime knows about cylindrical panoramic movies */
  1245. };
  1246.  
  1247.  
  1248. enum {
  1249.     gestaltQTVRMgrVers            = FOUR_CHAR_CODE('qtvv')        /* QuickTime VR version                                  */
  1250. };
  1251.  
  1252.  
  1253. enum {
  1254.     gestaltPhysicalRAMSize        = FOUR_CHAR_CODE('ram ')        /* physical RAM size */
  1255. };
  1256.  
  1257.  
  1258. enum {
  1259.     gestaltRBVAddr                = FOUR_CHAR_CODE('rbv ')        /* RBV base address  */
  1260. };
  1261.  
  1262.  
  1263. enum {
  1264.     gestaltROMSize                = FOUR_CHAR_CODE('rom ')        /* rom size */
  1265. };
  1266.  
  1267.  
  1268. enum {
  1269.     gestaltROMVersion            = FOUR_CHAR_CODE('romv')        /* rom version */
  1270. };
  1271.  
  1272.  
  1273. enum {
  1274.     gestaltResourceMgrAttr        = FOUR_CHAR_CODE('rsrc'),        /* Resource Mgr attributes */
  1275.     gestaltPartialRsrcs            = 0                                /* True if partial resources exist */
  1276. };
  1277.  
  1278.  
  1279. enum {
  1280.     gestaltRealtimeMgrAttr        = FOUR_CHAR_CODE('rtmr'),        /* Realtime manager attributes            */
  1281.     gestaltRealtimeMgrPresent    = 0                                /* true if the Realtime manager is present     */
  1282. };
  1283.  
  1284.  
  1285. enum {
  1286.     gestaltSCCReadAddr            = FOUR_CHAR_CODE('sccr')        /* scc read base address  */
  1287. };
  1288.  
  1289.  
  1290. enum {
  1291.     gestaltSCCWriteAddr            = FOUR_CHAR_CODE('sccw')        /* scc read base address  */
  1292. };
  1293.  
  1294.  
  1295. enum {
  1296.     gestaltScrapMgrAttr            = FOUR_CHAR_CODE('scra'),        /* Scrap Manager attributes */
  1297.     gestaltScrapMgrTranslationAware = 0                            /* True if scrap manager is translation aware */
  1298. };
  1299.  
  1300.  
  1301. enum {
  1302.     gestaltScriptMgrVersion        = FOUR_CHAR_CODE('scri')        /* Script Manager version number     */
  1303. };
  1304.  
  1305.  
  1306. enum {
  1307.     gestaltScriptCount            = FOUR_CHAR_CODE('scr#')        /* number of active script systems   */
  1308. };
  1309.  
  1310.  
  1311. enum {
  1312.     gestaltSCSI                    = FOUR_CHAR_CODE('scsi'),        /* SCSI Manager attributes */
  1313.     gestaltAsyncSCSI            = 0,                            /* Supports Asynchronous SCSI */
  1314.     gestaltAsyncSCSIINROM        = 1,                            /* Async scsi is in ROM (available for booting) */
  1315.     gestaltSCSISlotBoot            = 2,                            /* ROM supports Slot-style PRAM for SCSI boots (PDM and later) */
  1316.     gestaltSCSIPollSIH            = 3                                /* SCSI Manager will poll for interrupts if Secondary Interrupts are busy. */
  1317. };
  1318.  
  1319.  
  1320. enum {
  1321.     gestaltControlStripAttr        = FOUR_CHAR_CODE('sdev'),        /* Control Strip attributes */
  1322.     gestaltControlStripExists    = 0,                            /* Control Strip is installed */
  1323.     gestaltControlStripVersionFixed = 1,                        /* Control Strip version Gestalt selector was fixed */
  1324.     gestaltControlStripUserFont    = 2,                            /* supports user-selectable font/size */
  1325.     gestaltControlStripUserHotKey = 3                            /* support user-selectable hot key to show/hide the window */
  1326. };
  1327.  
  1328.  
  1329. enum {
  1330.     gestaltSDPStandardDirectoryVersion = FOUR_CHAR_CODE('sdvr')    /* OCE Standard Directory Panel*/
  1331. };
  1332.  
  1333.  
  1334. enum {
  1335.     gestaltSerialAttr            = FOUR_CHAR_CODE('ser '),        /* Serial attributes */
  1336.     gestaltHasGPIaToDCDa        = 0,                            /* GPIa connected to DCDa*/
  1337.     gestaltHasGPIaToRTxCa        = 1,                            /* GPIa connected to RTxCa clock input*/
  1338.     gestaltHasGPIbToDCDb        = 2,                            /* GPIb connected to DCDb */
  1339.     gestaltHidePortA            = 3,                            /* Modem port (A) should be hidden from users */
  1340.     gestaltHidePortB            = 4                                /* Printer port (B) should be hidden from users */
  1341. };
  1342.  
  1343.  
  1344. enum {
  1345.     gestaltShutdownAttributes    = FOUR_CHAR_CODE('shut'),        /* ShutDown Manager Attributes */
  1346.     gestaltShutdownHassdOnBootVolUnmount = 0                    /* True if ShutDown Manager unmounts boot & VM volume at shutdown time. */
  1347. };
  1348.  
  1349.  
  1350. enum {
  1351.     gestaltNuBusConnectors        = FOUR_CHAR_CODE('sltc')        /* bitmap of NuBus connectors*/
  1352. };
  1353.  
  1354.  
  1355. enum {
  1356.     gestaltSlotAttr                = FOUR_CHAR_CODE('slot'),        /* slot attributes  */
  1357.     gestaltSlotMgrExists        = 0,                            /* true is slot mgr exists  */
  1358.     gestaltNuBusPresent            = 1,                            /* NuBus slots are present  */
  1359.     gestaltSESlotPresent        = 2,                            /* SE PDS slot present  */
  1360.     gestaltSE30SlotPresent        = 3,                            /* SE/30 slot present  */
  1361.     gestaltPortableSlotPresent    = 4                                /* Portable’s slot present  */
  1362. };
  1363.  
  1364.  
  1365. enum {
  1366.     gestaltFirstSlotNumber        = FOUR_CHAR_CODE('slt1')        /* returns first physical slot */
  1367. };
  1368.  
  1369.  
  1370. enum {
  1371.     gestaltSoundAttr            = FOUR_CHAR_CODE('snd '),        /* sound attributes */
  1372.     gestaltStereoCapability        = 0,                            /* sound hardware has stereo capability */
  1373.     gestaltStereoMixing            = 1,                            /* stereo mixing on external speaker */
  1374.     gestaltSoundIOMgrPresent    = 3,                            /* The Sound I/O Manager is present */
  1375.     gestaltBuiltInSoundInput    = 4,                            /* built-in Sound Input hardware is present */
  1376.     gestaltHasSoundInputDevice    = 5,                            /* Sound Input device available */
  1377.     gestaltPlayAndRecord        = 6,                            /* built-in hardware can play and record simultaneously */
  1378.     gestalt16BitSoundIO            = 7,                            /* sound hardware can play and record 16-bit samples */
  1379.     gestaltStereoInput            = 8,                            /* sound hardware can record stereo */
  1380.     gestaltLineLevelInput        = 9,                            /* sound input port requires line level */
  1381.                                                                 /* the following bits are not defined prior to Sound Mgr 3.0 */
  1382.     gestaltSndPlayDoubleBuffer    = 10,                            /* SndPlayDoubleBuffer available, set by Sound Mgr 3.0 and later */
  1383.     gestaltMultiChannels        = 11,                            /* multiple channel support, set by Sound Mgr 3.0 and later */
  1384.     gestalt16BitAudioSupport    = 12                            /* 16 bit audio data supported, set by Sound Mgr 3.0 and later */
  1385. };
  1386.  
  1387.  
  1388. enum {
  1389.     gestaltSplitOSAttr            = FOUR_CHAR_CODE('spos'),
  1390.     gestaltSplitOSBootDriveIsNetworkVolume = 0,                    /* the boot disk is a network 'disk', from the .LANDisk drive. */
  1391.     gestaltSplitOSAware            = 1,                            /* the system includes the code to deal with a split os situation. */
  1392.     gestaltSplitOSEnablerVolumeIsDifferentFromBootVolume = 2,    /* the active enabler is on a different volume than the system file. */
  1393.     gestaltSplitOSMachineNameSetToNetworkNameTemp = 3            /* The machine name was set to the value given us from the BootP server */
  1394. };
  1395.  
  1396.  
  1397. enum {
  1398.     gestaltSMPSPSendLetterVersion = FOUR_CHAR_CODE('spsl')        /* OCE StandardMail*/
  1399. };
  1400.  
  1401.  
  1402. enum {
  1403.     gestaltSpeechRecognitionAttr = FOUR_CHAR_CODE('srta'),        /* speech recognition attributes */
  1404.     gestaltDesktopSpeechRecognition = 1,                        /* recognition thru the desktop microphone is available */
  1405.     gestaltTelephoneSpeechRecognition = 2                        /* recognition thru the telephone is available */
  1406. };
  1407.  
  1408.  
  1409. enum {
  1410.     gestaltSpeechRecognitionVersion = FOUR_CHAR_CODE('srtb')    /* speech recognition version (0x0150 is the first version that fully supports the API) */
  1411. };
  1412.  
  1413.  
  1414. enum {
  1415.     gestaltSoftwareVendorCode    = FOUR_CHAR_CODE('srad'),        /* Returns system software vendor information */
  1416.     gestaltSoftwareVendorApple    = FOUR_CHAR_CODE('Appl'),        /* System software sold by Apple */
  1417.     gestaltSoftwareVendorLicensee = FOUR_CHAR_CODE('Lcns')        /* System software sold by licensee */
  1418. };
  1419.  
  1420.  
  1421. enum {
  1422.     gestaltStandardFileAttr        = FOUR_CHAR_CODE('stdf'),        /* Standard File attributes */
  1423.     gestaltStandardFile58        = 0,                            /* True if selectors 5-8 (StandardPutFile-CustomGetFile) are supported */
  1424.     gestaltStandardFileTranslationAware = 1,                    /* True if standard file is translation manager aware */
  1425.     gestaltStandardFileHasColorIcons = 2,                        /* True if standard file has 16x16 color icons */
  1426.     gestaltStandardFileUseGenericIcons = 3,                        /* Standard file LDEF to use only the system generic icons if true */
  1427.     gestaltStandardFileHasDynamicVolumeAllocation = 4            /* True if standard file supports more than 20 volumes */
  1428. };
  1429.  
  1430.  
  1431. enum {
  1432.     gestaltSysArchitecture        = FOUR_CHAR_CODE('sysa'),        /* Native System Architecture */
  1433.     gestalt68k                    = 1,                            /* Motorola MC68k architecture */
  1434.     gestaltPowerPC                = 2                                /* IBM PowerPC architecture */
  1435. };
  1436.  
  1437.  
  1438. enum {
  1439.     gestaltSystemUpdateVersion    = FOUR_CHAR_CODE('sysu')        /* System Update version */
  1440. };
  1441.  
  1442.  
  1443. enum {
  1444.     gestaltSystemVersion        = FOUR_CHAR_CODE('sysv')        /* system version*/
  1445. };
  1446.  
  1447.  
  1448. enum {
  1449.     gestaltToolboxTable            = FOUR_CHAR_CODE('tbtt')        /*  OS trap table base  */
  1450. };
  1451.  
  1452.  
  1453. enum {
  1454.     gestaltTextEditVersion        = FOUR_CHAR_CODE('te  '),        /* TextEdit version number */
  1455.     gestaltTE1                    = 1,                            /* TextEdit in MacIIci ROM */
  1456.     gestaltTE2                    = 2,                            /* TextEdit with 6.0.4 Script Systems on MacIIci (Script bug fixes for MacIIci) */
  1457.     gestaltTE3                    = 3,                            /* TextEdit with 6.0.4 Script Systems all but MacIIci */
  1458.     gestaltTE4                    = 4,                            /* TextEdit in System 7.0 */
  1459.     gestaltTE5                    = 5                                /* TextWidthHook available in TextEdit */
  1460. };
  1461.  
  1462.  
  1463. enum {
  1464.     gestaltTEAttr                = FOUR_CHAR_CODE('teat'),        /* TextEdit attributes */
  1465.     gestaltTEHasGetHiliteRgn    = 0,                            /* TextEdit has TEGetHiliteRgn */
  1466.     gestaltTESupportsInlineInput = 1,                            /* TextEdit does Inline Input */
  1467.     gestaltTESupportsTextObjects = 2,                            /* TextEdit does Text Objects */
  1468.     gestaltTEHasWhiteBackground    = 3                                /* TextEdit supports overriding the TERec's background to white */
  1469. };
  1470.  
  1471.  
  1472. enum {
  1473.     gestaltTeleMgrAttr            = FOUR_CHAR_CODE('tele'),        /* Telephone manager attributes */
  1474.     gestaltTeleMgrPresent        = 0,
  1475.     gestaltTeleMgrPowerPCSupport = 1,
  1476.     gestaltTeleMgrSoundStreams    = 2,
  1477.     gestaltTeleMgrAutoAnswer    = 3,
  1478.     gestaltTeleMgrIndHandset    = 4,
  1479.     gestaltTeleMgrSilenceDetect    = 5,
  1480.     gestaltTeleMgrNewTELNewSupport = 6
  1481. };
  1482.  
  1483.  
  1484. enum {
  1485.     gestaltTermMgrAttr            = FOUR_CHAR_CODE('term'),        /* terminal mgr attributes */
  1486.     gestaltTermMgrPresent        = 0,
  1487.     gestaltTermMgrErrorString    = 2
  1488. };
  1489.  
  1490.  
  1491. enum {
  1492.     gestaltThreadMgrAttr        = FOUR_CHAR_CODE('thds'),        /* Thread Manager attributes */
  1493.     gestaltThreadMgrPresent        = 0,                            /* bit true if Thread Mgr is present */
  1494.     gestaltSpecificMatchSupport    = 1,                            /* bit true if Thread Mgr supports exact match creation option */
  1495.     gestaltThreadsLibraryPresent = 2                            /* bit true if Thread Mgr shared library is present */
  1496. };
  1497.  
  1498.  
  1499. enum {
  1500.     gestaltTimeMgrVersion        = FOUR_CHAR_CODE('tmgr'),        /* time mgr version */
  1501.     gestaltStandardTimeMgr        = 1,                            /* standard time mgr is present */
  1502.     gestaltRevisedTimeMgr        = 2,                            /* revised time mgr is present */
  1503.     gestaltExtendedTimeMgr        = 3                                /* extended time mgr is present */
  1504. };
  1505.  
  1506.  
  1507. enum {
  1508.     gestaltTSMTEVersion            = FOUR_CHAR_CODE('tmTV'),
  1509.     gestaltTSMTE1                = 0x0100,                        /* Original version of TSMTE */
  1510.     gestaltTSMTE15                = 0x0150,                        /* System 8.0 */
  1511.     gestaltTSMTE152                = 0x0152                        /* System 8.2 */
  1512. };
  1513.  
  1514.  
  1515. enum {
  1516.     gestaltTSMTEAttr            = FOUR_CHAR_CODE('tmTE'),
  1517.     gestaltTSMTEPresent            = 0,
  1518.     gestaltTSMTE                = 0                                /* gestaltTSMTE is old name for gestaltTSMTEPresent */
  1519. };
  1520.  
  1521.  
  1522. enum {
  1523.     gestaltALMAttr                = FOUR_CHAR_CODE('trip'),        /* Settings Manager attributes (see also gestaltALMVers) */
  1524.     gestaltALMPresent            = 0,                            /* bit true if ALM is available */
  1525.     gestaltALMHasSFGroup        = 1,                            /* bit true if Put/Get/Merge Group calls are implmented */
  1526.     gestaltALMHasCFMSupport        = 2,                            /* bit true if CFM-based modules are supported */
  1527.     gestaltALMHasRescanNotifiers = 3                            /* bit true if Rescan notifications/events will be sent to clients */
  1528. };
  1529.  
  1530.  
  1531. enum {
  1532.     gestaltALMHasSFLocation        = gestaltALMHasSFGroup
  1533. };
  1534.  
  1535.  
  1536. enum {
  1537.     gestaltTSMgrVersion            = FOUR_CHAR_CODE('tsmv'),        /* Text Services Mgr version, if present */
  1538.     gestaltTSMgr15                = 0x0150
  1539. };
  1540.  
  1541.  
  1542. enum {
  1543.     gestaltTSMgrAttr            = FOUR_CHAR_CODE('tsma'),        /* Text Services Mgr attributes, if present */
  1544.     gestaltTSMDisplayMgrAwareBit = 0,                            /* TSM knows about display manager */
  1545.     gestaltTSMdoesTSMTEBit        = 1                                /* TSM has integrated TSMTE */
  1546. };
  1547.  
  1548.  
  1549. enum {
  1550.     gestaltSpeechAttr            = FOUR_CHAR_CODE('ttsc'),        /* Speech Manager attributes */
  1551.     gestaltSpeechMgrPresent        = 0,                            /* bit set indicates that Speech Manager exists */
  1552.     gestaltSpeechHasPPCGlue        = 1                                /* bit set indicates that native PPC glue for Speech Manager API exists */
  1553. };
  1554.  
  1555.  
  1556. enum {
  1557.     gestaltTVAttr                = FOUR_CHAR_CODE('tv  '),        /* TV version */
  1558.     gestaltHasTVTuner            = 0,                            /* supports Philips FL1236F video tuner */
  1559.     gestaltHasSoundFader        = 1,                            /* supports Philips TEA6330 Sound Fader chip */
  1560.     gestaltHasHWClosedCaptioning = 2,                            /* supports Philips SAA5252 Closed Captioning */
  1561.     gestaltHasIRRemote            = 3,                            /* supports CyclopsII Infra Red Remote control */
  1562.     gestaltHasVidDecoderScaler    = 4,                            /* supports Philips SAA7194 Video Decoder/Scaler */
  1563.     gestaltHasStereoDecoder        = 5,                            /* supports Sony SBX1637A-01 stereo decoder */
  1564.     gestaltHasSerialFader        = 6,                            /* has fader audio in serial with system audio */
  1565.     gestaltHasFMTuner            = 7,                            /* has FM Tuner from donnybrook card */
  1566.     gestaltHasSystemIRFunction    = 8,                            /* Infra Red button function is set up by system and not by Video Startup */
  1567.     gestaltIRDisabled            = 9,                            /* Infra Red remote is not disabled. */
  1568.     gestaltINeedIRPowerOffConfirm = 10,                            /* Need IR power off confirm dialog. */
  1569.     gestaltHasZoomedVideo        = 11                            /* Has Zoomed Video PC Card video input. */
  1570. };
  1571.  
  1572.  
  1573. enum {
  1574.     gestaltUSBAttr                = FOUR_CHAR_CODE('usb '),        /* USB Attributes */
  1575.     gestaltUSBPresent            = 0,                            /* USB Support available */
  1576.     gestaltUSBHasIsoch            = 1                                /* USB Isochronous features available */
  1577. };
  1578.  
  1579.  
  1580. enum {
  1581.     gestaltUSBVersion            = FOUR_CHAR_CODE('usbv')        /* USB version */
  1582. };
  1583.  
  1584.  
  1585. enum {
  1586.     gestaltVersion                = FOUR_CHAR_CODE('vers'),        /* gestalt version */
  1587.     gestaltValueImplementedVers    = 5                                /* version of gestalt where gestaltValue is implemented. */
  1588. };
  1589.  
  1590.  
  1591. enum {
  1592.     gestaltVIA1Addr                = FOUR_CHAR_CODE('via1')        /* via 1 base address  */
  1593. };
  1594.  
  1595.  
  1596. enum {
  1597.     gestaltVIA2Addr                = FOUR_CHAR_CODE('via2')        /* via 2 base address  */
  1598. };
  1599.  
  1600.  
  1601. enum {
  1602.     gestaltVMAttr                = FOUR_CHAR_CODE('vm  '),        /* virtual memory attributes */
  1603.     gestaltVMPresent            = 0,                            /* true if virtual memory is present */
  1604.     gestaltVMHasLockMemoryForOutput = 1,                        /* true if LockMemoryForOutput is available */
  1605.     gestaltVMFilemappingOn        = 3,                            /* true if filemapping is available */
  1606.     gestaltVMHasPagingControl    = 4                                /* true if MakeMemoryResident, MakeMemoryNonResident, FlushMemory, and ReleaseMemoryData are available */
  1607. };
  1608.  
  1609.  
  1610. enum {
  1611.     gestaltVMInfoType            = FOUR_CHAR_CODE('vmin'),        /* Indicates how the Finder should display information about VM in */
  1612.                                                                 /* the Finder about box. */
  1613.     gestaltVMInfoSizeStorageType = 0,                            /* Display VM on/off, backing store size and name */
  1614.     gestaltVMInfoSizeType        = 1,                            /* Display whether VM is on or off and the size of the backing store */
  1615.     gestaltVMInfoSimpleType        = 2,                            /* Display whether VM is on or off */
  1616.     gestaltVMInfoNoneType        = 3                                /* Display no VM information */
  1617. };
  1618.  
  1619.  
  1620. enum {
  1621.     gestaltVMBackingStoreFileRefNum = FOUR_CHAR_CODE('vmbs')    /* file refNum of virtual memory's main backing store file (returned in low word of result) */
  1622. };
  1623.  
  1624.  
  1625.  
  1626.  
  1627. enum {
  1628.     gestaltALMVers                = FOUR_CHAR_CODE('walk')        /* Settings Manager version (see also gestaltALMAttr) */
  1629. };
  1630.  
  1631.  
  1632. enum {
  1633.     gestaltTranslationAttr        = FOUR_CHAR_CODE('xlat'),        /* Translation Manager attributes */
  1634.     gestaltTranslationMgrExists    = 0,                            /* True if translation manager exists */
  1635.     gestaltTranslationMgrHintOrder = 1,                            /* True if hint order reversal in effect */
  1636.     gestaltTranslationPPCAvail    = 2,
  1637.     gestaltTranslationGetPathAPIAvail = 3
  1638. };
  1639.  
  1640.  
  1641. enum {
  1642.     gestaltExtToolboxTable        = FOUR_CHAR_CODE('xttt')        /* Extended Toolbox trap table base */
  1643. };
  1644.  
  1645.  
  1646. /*WorldScript settings;*/
  1647.  
  1648. enum {
  1649.     gestaltWorldScriptIIVersion    = FOUR_CHAR_CODE('doub'),
  1650.     gestaltWorldScriptIIAttr    = FOUR_CHAR_CODE('wsat'),
  1651.     gestaltWSIICanPrintWithoutPrGeneralBit = 0                    /* bit 0 is on if WS II knows about PrinterStatus callback */
  1652. };
  1653.  
  1654.  
  1655.  
  1656.  
  1657.  
  1658. #if PRAGMA_STRUCT_ALIGN
  1659.     #pragma options align=reset
  1660. #elif PRAGMA_STRUCT_PACKPUSH
  1661.     #pragma pack(pop)
  1662. #elif PRAGMA_STRUCT_PACK
  1663.     #pragma pack()
  1664. #endif
  1665.  
  1666. #ifdef PRAGMA_IMPORT_OFF
  1667. #pragma import off
  1668. #elif PRAGMA_IMPORT
  1669. #pragma import reset
  1670. #endif
  1671.  
  1672. #ifdef __cplusplus
  1673. }
  1674. #endif
  1675.  
  1676. #endif /* __GESTALT__ */
  1677.  
  1678.